﻿using Microsoft.Extensions.Configuration;

namespace Itech_Run.Helper.Configure
{
    public class BuildConfiguration
    {
        public static IConfigurationRoot Build()
        {
            var builder = new ConfigurationBuilder()
                .SetBasePath(Path.Combine(Directory.GetCurrentDirectory(), "../Itech_Run.HttpApi.Host/"))
                .AddJsonFile("appsettings.json", optional: false);

            return builder.Build();
        }
    }
}
